POV-Ray : Newsgroups : povray.bugreports : Bug in rendering a simple sphere : Bug in rendering a simple sphere Server Time
2 Jun 2024 12:36:31 EDT (-0400)
  Bug in rendering a simple sphere  
From: Rainer Minixhofer
Date: 12 May 1999 02:48:35
Message: <37391633.0@news.povray.org>
I'm using POV-Ray v. 3.1d.msvc.win32 [Pentium II optimized] with an
AMD-K6-3D 350 Mhz and an Asus P5-B AT Motherboard and fairly
enought Memory (192 MBytes).

Following POV-Ray commands cause a simple sphere to be some-
how clipped around it's border:



#declare cameraorig=< 0,0,0>;
#declare cameratarget=< 740000000,-19000000, 130000000>;
#declare camerapos=cameratarget+vnormalize(cameraorig-cameratarget)*50;
camera{
  location camerapos
  look_at cameratarget
}
light_source
{
  0
  color rgb <1,1,1>
  looks_like {sphere {0, 700000}}
}
sphere {0, 18
        texture {
            pigment {color <0.8,0.8,0.8>}
        }
        translate < 740000000,-19000000, 130000000>
       }
sphere {0, 20
        translate < 750000000,-13000000, 100000000>}

It's clear that the size of the spheres and their position in space cover
several order of magnitudes.
So maybe this problem is somehow related to internal precision of variables.
But if one inserts
the keyword orthographic in the camera section, the sphere renders fine. One
can also try to
remove the second sphere and the problem will disappear (this is also the
fact if one removes
the looks_like statement in the light-source section).
Overall this is a very strange behaviour and it looks like a bug inside
POV-Ray.

Greetings,

    Rainer


Post a reply to this message


Attachments:
Download 'bug.bmp.dat' (57 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.